package com.hall.service;

import com.hall.dao.CommentMapper;
import com.hall.dao.CommentReplayMapper;
import com.hall.pojo.CommentData;
import com.hall.pojo.CommentReplay;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.UUID;

@Service
public class CommentReplayServiceImpl implements CommentReplayService{
    @Autowired
    CommentReplayMapper commentReplayMapper;

    public void setCommentReplayMapper(CommentReplayMapper commentReplayMapper) {
        this.commentReplayMapper = commentReplayMapper;
    }

    @Override
    public void saveCommentReplay(CommentReplay commentReplay) {
       commentReplay.setId( UUID.randomUUID().toString().replaceAll("-", ""));
      commentReplayMapper.insert(commentReplay);
    }

    @Override
    public void deleteCommentReplay(CommentReplay commentReplay) {

    }

    @Override
    public CommentReplay findCommentReplayById(String id) {
        return null;
    }

    @Override
    public List<CommentData> findCommentReplayList(CommentReplay commentReplay) {
        return null;
    }
}
